/*
 * @Author: yangni 920556271@qq.com
 * @Date: 2023-12-07 09:26:03
 * @LastEditors: yangni 920556271@qq.com
 * @LastEditTime: 2024-05-20 15:56:55
 * @FilePath: /yt-devops/lib/components/gaps.dart
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:yt_devops/styles/styles.dart';

/// 间隔
class Gaps {
  /// 水平间隔
  static Widget hGap2 = SizedBox(width: ScreenUtil().setWidth(Dimens.gapDp2));
  static Widget hGap3 = SizedBox(width: ScreenUtil().setWidth(Dimens.gapDp3));
  static Widget hGap4 = SizedBox(width: ScreenUtil().setWidth(Dimens.gapDp4));
  static Widget hGap5 = SizedBox(width: ScreenUtil().setWidth(Dimens.gapDp5));
  static Widget hGap8 = SizedBox(width: ScreenUtil().setWidth(Dimens.gapDp8));
  static Widget hGap10 = SizedBox(width: ScreenUtil().setWidth(Dimens.gapDp10));
  static Widget hGap12 = SizedBox(width: ScreenUtil().setWidth(Dimens.gapDp12));
  static Widget hGap15 = SizedBox(width: ScreenUtil().setWidth(Dimens.gapDp14));
  static Widget hGap16 = SizedBox(width: ScreenUtil().setWidth(Dimens.gapDp16));
  static Widget hGap20 = SizedBox(width: ScreenUtil().setWidth(Dimens.gapDp20));
  static Widget hGap24 = SizedBox(width: ScreenUtil().setWidth(Dimens.gapDp24));
  static Widget hGap25 = SizedBox(width: ScreenUtil().setWidth(Dimens.gapDp25));
  static Widget hGap32 = SizedBox(width: ScreenUtil().setWidth(Dimens.gapDp32));
  static Widget hGap40 = SizedBox(width: ScreenUtil().setWidth(Dimens.gapDp40));
  static Widget hGap48 = SizedBox(width: ScreenUtil().setWidth(Dimens.gapDp48));
  static Widget hGap50 = SizedBox(width: ScreenUtil().setWidth(Dimens.gapDp50));

  /// 垂直间隔
  static Widget vGap2 = SizedBox(height: Dimens.gapDp2);
  static Widget vGap3 = SizedBox(height: Dimens.gapDp3);
  static Widget vGap4 = SizedBox(height: Dimens.gapDp4);
  static Widget vGap5 = SizedBox(height: Dimens.gapDp5);
  static Widget vGap8 = SizedBox(height: Dimens.gapDp8);
  static Widget vGap10 = SizedBox(height: Dimens.gapDp10);
  static Widget vGap12 = SizedBox(height: Dimens.gapDp12);
  static Widget vGap14 = SizedBox(height: Dimens.gapDp14);
  static Widget vGap16 = SizedBox(height: Dimens.gapDp16);
  static Widget vGap20 = SizedBox(height: Dimens.gapDp20);
  static Widget vGap24 = SizedBox(height: Dimens.gapDp24);
  static Widget vGap25 = SizedBox(height: Dimens.gapDp25);
  static Widget vGap32 = SizedBox(height: Dimens.gapDp32);
  static Widget vGap40 = SizedBox(height: Dimens.gapDp40);
  static Widget vGap48 = SizedBox(height: Dimens.gapDp48);
  static Widget vGap50 = SizedBox(height: Dimens.gapDp50);

//  static Widget line =  SizedBox(
//    height: 0.6,
//    width: double.infinity,
//    child:  DecoratedBox(decoration: BoxDecoration(color: Colours.line)),
//  );

  static Widget line = const Divider(
    color: Colour.dividerColor,
    thickness: 0.5,
    height: 1,
  );

  static Widget vLine = const SizedBox(
    width: 0.6,
    height: 24.0,
    child: VerticalDivider(),
  );

  static Widget empty = const SizedBox.shrink();
}

class Dimens {
  static double gapDp2 = 2;
  static double gapDp3 = 3;
  static double gapDp4 = 4;
  static double gapDp5 = 5;
  static double gapDp8 = 8;
  static double gapDp10 = 10;
  static double gapDp12 = 12;
  static double gapDp14 = 14;
  static double gapDp16 = 16;
  static double gapDp20 = 20;
  static double gapDp24 = 24;
  static double gapDp25 = 25;
  static double gapDp32 = 32;
  static double gapDp40 = 40;
  static double gapDp48 = 48;
  static double gapDp50 = 50;
}
